{% load i18n %}
<html>
<head>
    <title>{% block title %}{{ turnir.name }}{% endblock %}</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="language" content="ru-RU"/>
    <meta name="keywords" content="{% block meta-keywords %}{% endblock %}"/>
    <meta name="description" content="{% block meta-description %}{% endblock %}"/>
    <meta name=Robots content="all">
    {% load static %}
    <link href="{% static "turnir/css/style.css" %}" rel="stylesheet" type="text/css">
    {% block headextra %} {% endblock headextra %}
</head>

<body class="main_body" LANG="ru-RU" DIR="LTR">
<img src="{% static 'turnir/images/chessLeftBG.png' %}" style="float:left; position: absolute; z-index: -1;"/>
<table style="margin: -3px auto;">
    <tbody>
    <tr>
        <td style="text-align: right; width: 490px;">
            <div style="float:right;">
                <div style="float:left">
                    <form id='lang_en' action="{% url 'set_language' %}" method='POST'>
                        {% csrf_token %}
                        <input type='hidden' name='language' value='en'/>
                        <a href='#' title='{% trans "English" %}'
                           onclick="document.getElementById('lang_en').submit()">
                            <img src="{% static 'turnir/images/English.gif' %}"/>
                        </a>
                    </form>
                </div>
                <div style="float:left">
                    <form id='lang_ru' action="{% url 'set_language' %}" method='POST'>
                        {% csrf_token %}
                        <input type='hidden' name='language' value='ru'/>
                        <a href='#' title='{% trans "Russian" %}'
                           onclick="document.getElementById('lang_ru').submit()">
                            <img src="{% static 'turnir/images/Russian.gif' %}"/>
                        </a>
                    </form>
                </div>
            </div>

            {% comment %} <a href="index.php"><img src="{% static 'turnir/images/Russian.gif' %}"/></a>
            <a href="index_en.php"><img src="{% static 'turnir/images/English.gif' %}"/></a>{% endcomment %}
        </td>
        <td colspan="2" style="text-align: left;">
            <div id="aboutInfo">
                <p class="white">29 апреля - 7 мая 2013 года</p>

                <p class="yellow">г. Пинск, Беларусь</p>
            </div>
        </td>
    </tr>
    <tr>
        <td colspan="3" style="text-align: left; padding-bottom: 20px; height: 78px; vertical-align: top;">
            <a href="/"><img src="{% static 'turnir/images/logoRuWhite.png' %}"/></a>
        </td>
        <td rowspan="2" width="170px;" style="padding-top: 60px;">
            <div class="organizers">
                <h3 class="yellow">Организаторы</h3>
                <a href="http://fmjd.org" target="_blank"><img
                        src="{% static 'turnir/images/fmjdLogoSmall.png' %}"/></a>
                <a href="http://fmjd64.org" target="_blank"><img style="background: #EEEEEE;"
                                                                 src="{% static 'turnir/images/eurologo.png' %}"/></a>
            </div>
            <div class="category">
                {% block nav %}
                    <ul class="nav">
                        <li><a href="{% url 'simpleblog.views.home_view' %}">Новости</a></li>
                        <li><a href="{#  url 'turnir.views.prog' #}">Программа</a></li>
                        <li><a href="{% url 'players.views.pat' %}">Участники</a></li>
                        <li><a href="{#  url 'turnir.views.regl' #}">Регламент</a></li>
                        <li><a href="{#  url 'turnir.views.part' #}">Партии</a></li>
                        <li><a href={#  url 'turnir.views.table' #}>Результаты, таблицы</a></li>
                        <li><a href={#  url 'turnir.views.gal' #}>Галерея</a></li>
                        <li><a href="{#  url 'turnir.views.contacts' #}">Контакты</a></li>

                    </ul>
                {% endblock nav %}

                <script type="text/javascript"
                        src="http://jh.revolvermaps.com/2/1.js?i=780nd5pkjpa&amp;s=100&amp;m=0&amp;v=false&amp;r=false&amp;b=000000&amp;n=false&amp;c=ff0000"
                        async="async"></script>
            </div>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <div class="content">
                {# include 'turnir/news.html' #}

                {% block content %}{% endblock %}
            </div>

            {% block footer %}
                <div class="footer">
                    <p>Copyright &copy 2013 by <a href="mailto: dm.kolb@gmail.com" target="_blank">Dmitry Kolb</p>
                </div>
            {% endblock %}
        </td>
    </tr>

    </tbody>
</table>

</html>
